// 资产概览卡片样式
.assets-overview {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
  margin-top: 15px;
  gap: 24px;

  .overView-item {
    flex: 1;
    height: 156px;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: rgba(17, 12, 46, 0.1) 0px 10px 30px -5px;
    transition: all 0.3s ease;

    &:hover {
      box-shadow: rgba(17, 12, 46, 0.15) 0px 15px 35px -5px;
    }

    .item-name {
      display: flex;
      justify-content: space-between;
      align-items: center;
      .name {
        font-size: 20px;
        font-weight: 600;
        color: #333;
      }
      .img {
        width: 20px;
        height: 20px;
        img {
          width: 100%;
          height: 100%;
        }
      }
    }
    .item-value {
      margin-top: 24px;
      font-size: 52px;
      font-weight: bold;
      text-align: center;
    }
  }
}

// 页面容器样式
.page-container {
  width: 100%;
  background: rgba(0, 0, 0, 0.05);
  padding: 24px;

  .assets-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .header-name {
      font-size: 24px;
      font-weight: 600;
      color: #333;
    }
  }
}

// 通用卡片容器样式
.chart-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 15px;

  > * {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: rgba(17, 12, 46, 0.1) 0px 10px 30px -5px;
    transition: all 0.3s ease;

    &:hover {
      box-shadow: rgba(17, 12, 46, 0.15) 0px 15px 35px -5px;
    }
  }
}

// 对齐方式 mixins
.align-center() {
  justify-content: center;
}

.align-right() {
  justify-content: flex-end;
}

// 通用表格列表样式
.common-list {
  width: 100%;
  margin-top: 20px;

  // 搜索区域样式
  .search-content {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    margin-bottom: 20px;
  }

  // 表头样式
  .list-header {
    width: 100%;
    border-bottom: 2px solid #e5e7eb;
    height: 48px;
    display: flex;
    padding: 0 24px;

    .header-item {
      flex: 1;
      font-size: 18px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  // 列表容器样式
  .item-container {
    width: 100%;
    height: 300px;
    overflow-y: auto;
    padding-right: 4px;
  }

  // 列表项样式
  .item-list {
    width: 100%;
    min-height: 40px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 8px 24px;
    transition: all 0.3s ease;

    &:hover {
      background-color: #f5f7fa;
      box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
    }

    .department-item {
      flex: 1;
      font-size: 16px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 8px;
      line-height: 1.5;
      text-align: center;
    }

    .show-info {
      color: #409eff;
      cursor: pointer;
      transition: all 0.3s ease;
      &:hover {
        color: #66b1ff;
        transform: scale(1.05);
      }
    }

    &.warning {
      background-color: rgba(255, 77, 79, 0.05);
      border-left: 4px solid #ff4d4f;
      position: relative;

      .department-item {
        color: #ff4d4f;
        font-weight: 700;
      }

      &:hover {
        background-color: rgba(255, 77, 79, 0.1);
        box-shadow: 0 2px 12px 0 rgba(255, 77, 79, 0.1);
      }

      &::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        background: linear-gradient(
          90deg,
          rgba(255, 77, 79, 0.05) 0%,
          rgba(255, 77, 79, 0) 100%
        );
      }
    }
  }
} 